import React, { Component } from 'react'

export default class Title extends Component {

  // static defaultProps={
  //   name:'我是一个默认值'
  // }

  render() {
    return (
      <div>
        <h1>{this.props.name}</h1>
        <hr />
        <h1>{this.props.children}</h1>
      </div>
    )
  }
}

Title.defaultProps = {
  name: "我也是一个默认值"
}
